package com.sep24th.chen.shuxingfileeditor;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.ui.editors.text.TextEditor;

public class ShuxingFileEditor extends TextEditor {
	private Log log = LogFactory.getLog(ShuxingFileEditor.class);
	private ColorManager colorManager;

	public ShuxingFileEditor() {
		super();
		colorManager = new ColorManager();
		setSourceViewerConfiguration(new XMLConfiguration(colorManager));
		setDocumentProvider(new XMLDocumentProvider());
		log.debug("startting?!");
	}

	public void dispose() {
		colorManager.dispose();
		super.dispose();
		log.debug("byebye?!");

	}

}
